<?php

declare(strict_types=1);
/**
 * 
 */
namespace WanZ\App\User\Service;

use Hyperf\Database\Model\Builder;
use WanZ\App\User\Contract\UserDiscardContract;
use WanZ\App\User\Model\UserDiscard;
use MoChat\Framework\Service\AbstractService;

class UserDiscardService extends AbstractService implements UserDiscardContract
{
    /**
     * @var UserDiscard
     */
    protected $model;

    /**
     * 添加单条
     * @param array $data 添加的数据
     * @return int 自增ID
     */
    public function createUserDiscard(array $data): int
    {
        return $this->model->createOne($data);
    }
    
}
